package People;

import Operation.*;

import java.util.Scanner;

public class Administrator extends Person {
    public Administrator(String name) {
        super(name);
        this.iOperations = new Operation.IOperation[]{
                new Exit(),
                new FindBook(),
                new AddBook(),
                new DeleteBook(),
                new ShowBook(),
        };
    }

    public int menu(){
        System.out.println("***********  管理员菜单  ************");
        System.out.println("1.查找图书");
        System.out.println("2.新增图书");
        System.out.println("3.删除图书");
        System.out.println("4.显示图书");
        System.out.println("0.退出系统");
        System.out.print("请输入您所要执行的操作：");

        Scanner scanner = new Scanner(System.in);
        int operationNumber = scanner.nextInt();

        return operationNumber;
    }
}
